package com.kevin.springcloud.hystrixzuulserver;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

@EnableZuulProxy
@SpringCloudApplication
@EnableHystrixDashboard
public class HystrixZuulServerApp {

    @Bean
    public AccessTokenFilter accessTokenFilter(){
        return new AccessTokenFilter();
    }

    public static  void  main(String[] args){
        new SpringApplication(HystrixZuulServerApp.class).run(args);
    }
}
